<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改购物车X')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-shopping-edit" th:object="${showShopping}">
        <input name="shoppingId" th:field="*{shoppingId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">商品：</label>
            <div class="col-sm-8">
                <input class="form-control" name="shoppingShop" th:field="*{shoppingShop}" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "edubuy/shopping";
    $("#form-shopping-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-shopping-edit').serialize());
        }
    }
</script>
</body>
</html>